#pragma once
#include"preCmpH.h"
#include"UIUtilities.h"

BEGIN_NAMESPACE(ui_manager)
BEGIN_NAMESPACE(ui_fonts)

class UIFontManager;

class UIFont
{
public:
	UIFont(void);
	UIFont(const UIFont& font);
	UIFont& operator= (const UIFont& font);
	~UIFont(void);

	void SetSize(int size){size_ = size;}
	void SetName(std::string name){f_name_ = name;}

	int GetSize()const{return size_;}
	std::string GetName()const{return f_name_;}
	bool IsValid()const{ return (id_ != 0) ? true : false; }

	UISize GetBoundingBox();
private:
	int size_;
	int id_;
	std::string f_name_;

	void SetId(int id){id_ = id;}
	int GetId()const{return id_;}

	friend class UIFontManager;
};

END_NAMESPACE // ui fonts
END_NAMESPACE // ui manager